package com.xqboss.apps.dto.nft;


import com.xqboss.apps.enums.nft.NftTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author Administrator
 */
@Data
public class NftTransferDto {

    @ApiModelProperty(value = "藏品转赠配置主键id")
    @NotNull
    private Long transferConfigId;

    @ApiModelProperty(value = "藏品id")
    @NotNull
    private Long nftId;

    @ApiModelProperty("转入用户id")
    @NotNull(message = "转入用户id不能为空")
    private Long toUserId;

    @ApiModelProperty("指定藏品编码")
    @NotEmpty(message = "请选择藏品编号")
    @Size(min = 1, message = "请选择藏品编号")
    private List<String> nftNumberStr;

    @ApiModelProperty("转赠类型")
    @NotNull(message = "转赠类型不能为空")
    private NftTypeEnum type;

    @ApiModelProperty(value = "转赠热豆服务费")
    @PositiveOrZero
    private BigDecimal hotBeans;

    @ApiModelProperty(value = "转赠扳手服务费")
    @PositiveOrZero
    private BigDecimal wrench;

    @ApiModelProperty(value = "转赠力豆服务费")
    @PositiveOrZero
    private BigDecimal lidou;

    @ApiModelProperty("支付密码")
    @NotBlank(message = "支付密码不能为空")
    private String payPwd;
}
